import request from '@/utils/request'

export default {

  // 举报管理-条件分页查询
  search(current, size, data) {
    return request({
      url: `/article/report/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // 根据ID删除举报
  deleteById(id) {
    return request({
      url: `/article/report/admin/remove/${id}`,
      method: 'delete'
    })
  },
  // 根据id查询详情
  getById(id) {
    return request({
      url: `/article/report/${id}`,
      method: 'get'
    })
  },
  // 编辑（审核处理举报
  auditReport(data) {
    return request({
      url: `/article/report`,
      method: 'put',
      data
    })
  }
}
